

var app = getApp();
Page({
  data: {
    shownew: false,
    successcollect: false,
    successshare:false,
    carouselList:[
      {
        img:'../../images/index/news1.png',
      },
      {
        img:'../images/logo2.png',
      },
      {
        img:'../../images/index/news3.png',
      },
    ],
    modulearr:[
      {
        img:'../../images/safeEle_img/product_intro.png',
        text:'产品介绍'
      },
      {
        img:'../../images/safeEle_img/product_case.png',
        text:'产品案例'
      },
      {
        img:'../../images/safeEle_img/product_application.png',
        text:'产品应用'
      },
      {
        img:'../../images/safeEle_img/product_vidoe.png',
        text:'产品视频'
      },
      {
        img:'../../images/safeEle_img/training_video.png',
        text:'培训视频'
      },
      {
        img:'../../images/safeEle_img/news_movement.png',
        text:'新闻动态'
      },
    ],
    recommedarr: [
      {
        img: '../../images/index/news1.png',
        brief: '万可连接器万可连接器万可连接器万可连接器',
        grey: false
      },
      {
        img: '../../images/index/news2.png',
        brief: '万可连接器万可连接器万可连接器万可连接器',
        grey: true
      },
      {
        img: '../../images/index/news1.png',
        brief: '万可连接器万可连接器万可连接器万可连接器',
        grey: false
      },
      {
        img: '../../images/index/news1.png',
        brief: '万可连接器万可连接器万可连接器万可连接器',
        grey: false
      },
      {
        img: '../../images/index/news1.png',
        brief: '万可连接器万可连接器万可连接器万可连接器',
        grey: false
      },
      {
        img: '../../images/index/news1.png',
        brief: '万可连接器万可连接器万可连接器万可连接器',
        grey: false
      }
    ],
  },
  onLoad: function () {

    

  },
  onShow:function(){

  },
  login:function(){
   
  },
  showmodal: function () {
    this.setData({
      shownew: true
    })
  },
  onCloseNew: function () {
    this.setData({
      shownew: false
    })
  },
  submitfile: function () {
    var vm = this;
    this.setData({
      shownew: false,
      successcollect:true
    });
    setTimeout(() => {
      vm.setData({
        successcollect:false
      });
    }, 1000);
  },
  showsharemodal:function(){
    var vm = this;
    this.setData({
      successshare:true
    });
    setTimeout(() => {
      vm.setData({
        successshare:false
      });
    }, 1000);
  }

})


